Skip to content

NMS-17749: Zenith Connect UI, connect with Registration Rest API #7718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2025

Conversation

synqotik
Copy link
Contributor

Update the Zenith Connect UI to use the Rest API for storing and retrieving registration info.

Update the persistence service to exclude duplicate registrations.

Clean up the UI a bit.

External References

registration.systemId.equals(existingRegistration.systemId);

if (systemIdsMatch) {
boolean accessTokenMatches = registration.accessToken != null &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ZnithConnectRegistrations we are always getting first can you explain please? i don't understand it.
We have to avoid nested if else if possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a change to remove some nesting.

For now, we only ever have just 1 registration. However, in case we add more in the future (maybe user connects with multiple Zenith instances or something else), I made the underlying data structure a list instead of a single object.

Copy link
Contributor

@Shahbaz-dataq Shahbaz-dataq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI changes look good.

@synqotik synqotik merged commit 7c93d83 into develop May 7, 2025
14 of 16 checks passed
@synqotik synqotik deleted the jira/NMS-17749-zenith-registrations-ui branch May 7, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants